package com.stone.springcloud.client;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySources;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by stone on 2017/8/28.
 */
@SpringBootApplication
@RestController
public class Application {

	@Autowired
	private Config config;

	@RequestMapping("/")
	public String test() {
		return config.getDefaultZone() + "--" + config.getServiceUrl();
	}

	public static void main(String[] args) {
		SpringApplication.run(Application.class, args);
	}
}
